// pages/tutorial/tutorialItem/tutorialItem.js
var util = require("../../../utils/util.js");

Page({

  /**
   * 页面的初始数据
   */
  data: {
    detail: {},
    rlvCourseList: [],
    scrollHeight:1104,
    h5Url:""
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var UserID = getApp().globalData.userId;
    if (UserID == "") {
      setTimeout(function () {
        wx.navigateBack({
          delta: 1,
        });
      }, 1000);
      wx.showToast({
        title: '请先登录',
      });
    }


    wx.showLoading({
      title: '稍等',
    })
    var ID = options.ID;
    // get Token

    var url = getApp().globalData.basePath.appPath + "/MobileWeb/course/course_detailV2.html?newsID=" + ID + "&token=";
    this.setData({
      h5Url: url
    });
    wx.hideLoading();

  
   
  },

 
})